package com.qifeng.modules.userInfo.service;

import com.qifeng.common.base.BaseService;
import com.qifeng.modules.userInfo.domain.UserInfo;
import com.qifeng.modules.userInfo.repository.UserInfoRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
* Created by if on 2017/11/22.
* @author sunyifu
*/
@Service
@Transactional(readOnly = true)
public class UserInfoService  extends BaseService<UserInfo, UserInfoRepository,Long> {

    @Autowired
    private UserInfoRepository repository;

    public UserInfo findByOpenId(String openid) {
        return repository.findByOpenId(openid);
    }
}